package com.study.example.gameserver.module.player.resource;

import com.sparrow.resource.annotation.ID;
import com.sparrow.resource.annotation.Resource;
import com.study.example.gameserver.module.attr.domain.AttrType;

import java.util.Map;

/**
 * 等级配置
 */
@Resource("config/LevelResource.xlsx")
public class LevelResource {
    @ID
    private int level;
    /**
     * 升到改等级需要的经验
     */
    private int needExp;
    /**
     * 属性
     */
    private Map<AttrType, Integer> attr;

    public void setLevel(int level) {
        this.level = level;
    }

    public int getLevel() {
        return level;
    }

    public void setNeedExp(int needExp) {
        this.needExp = needExp;
    }

    public int getNeedExp() {
        return needExp;
    }

    public Map<AttrType, Integer> getAttr() {
        return attr;
    }

    public void setAttr(Map<AttrType, Integer> attr) {
        this.attr = attr;
    }
}
